View Product Inserting
De moegelijkheid om een product toe te voegen stemt overeen met de use case Product Inserting.
Probleem
Design
Oplossing
@{ Layout = "~/Views/Shared/_LayoutPage.cshtml"; } @model Webwinkel.Models.Product @using (Html.BeginForm("Insert", "Product")) { <p> @Html.LabelFor(model => model.Name) @Html.EditorFor(model => model.Name) @Html.ValidationMessageFor(model => model.Name) </p> <p> @Html.LabelFor(model => model.Price) @Html.EditorFor(model => model.Price) @Html.ValidationMessageFor(model => model.Price) </p> <p> @Html.LabelFor(model => model.Image) @Html.EditorFor(model => model.Image) @Html.ValidationMessageFor(model => model.Image) </p> <p> @Html.LabelFor(model => model.Description) @Html.EditorFor(model => model.Description) @Html.ValidationMessageFor(model => model.Description) </p> <p> <input type="submit" value="Insert" /> </p> }
2017-01-03 13:24:11